import java.util.Arrays;

public class Topic3 {
    /**
     * @Auther: 86176
     * @Date: 2021/4/17 - 04 - 17 - 16:43
     * @Description: PACKAGE_NAME
     * @version: 1.0
     * 
     */

    public static void f1() {
        int[][] arr = {{1, 2, 3, 4}, {4, 5, 6, 7}, {3, 4, 6, 8}, {2, 5, 7, 8}};
        int sum1 = 0,sum2 = 0;
        for (int i = 0; i < arr.length; i++) {
            sum1 +=arr[i][i];
        }
        for (int i = 3; i >=0 ; i--) {
            sum2 +=arr[arr.length-1-i][i];
        }
        System.out.println(sum1+"和"+sum2);
    }

    public static void f2(){
        int[][] arr = new int[8][];
        for (int i = 0; i < 8; i++) {
            arr[i] = new int[i];

            if (i==7){
                System.out.println(Arrays.toString(arr[i]));
            }
        }

    }


    public static void main(String[] args) {
        f2();
    }
}
